<?php
class UserSettings_Controller extends Controller {


    public function setSessionProperty() {
        if (! request::is_ajax()) {
            return;
        }
        $key = $this->input->post('key');
        $value = $this->input->post('value');

        $this->getSessionData()->setProperty($key, $value);
        echo 'OK';
    }
}